package com.toocms.jinjuhang.data.order_info

data class OrderDetailData(
    val order_id: String?,
    val refund_id: String?,
    val order_type: String?,
    val order_sn: String?,
    val contacts: String?,
    val province_name: String?,
    val city_name: String?,
    val district_name: String?,
    val address: String?,
    val mobile: String?,
    val remark: String?,
    val logistics_number: String?,
    val logistics_name: String?,
    val create_time: String?,
    val cancel_order_reason: String?,
    val is_comm: String?,
    val status: String?,
    val status_name: String?,
    val payment: String?,
    val payment_name: String?,
    val refund_status: String?,
    val apply_refund_time: String?,
    val apply_refund_reason: String?,
    val finish_refund_time: String?,
    val refuse_refund_time: String?,
    val refuse_refund_reason: String?,
    val cancel_refund_time: String?,
    val cancel_refund_reason: String?,
    val notice: String?,
    val goods_list: List<OrderCommodityItemData>?,
) {
    var goods_amounts: String? = null
        get() {
            return if (field.isNullOrEmpty()) "0" else field
        }
    var freight_amounts: String? = null
        get() {
            return if (field.isNullOrEmpty()) "0" else field
        }
    var pay_amounts: String? = null
        get() {
            return if (field.isNullOrEmpty()) "0" else field
        }
    var refund_amounts: String? = null
        get() {
            return if (field.isNullOrEmpty()) "0" else field
        }
}